<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form" target="hide_form" method="post" action="">
                        <div class="layui-form">
                            <div class="layui-form-item">
                                <label class="layui-form-label">接收端</label>
                                <div class="layui-input-inline">
                                    <select name="target" onchange="tag_show(this)" class="layui-input layui-unselect w100">
                                        <option value="1" {eq name="oldData.target|default='1'" value="1"}selected{/eq} >用户</option>
                                        <option value="2" {eq name="oldData.target|default='1'" value="2"}selected{/eq} >代理商</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">信息标题</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="title" value="{$oldData.title|default=''}" class="layui-input w210" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">信息内容</label>
                                <div class="layui-input-inline">
                                    <textarea name="contents" cols="50" rows="5" class="layui-textarea w300" style="resize: none;">{$oldData.contents|default=''}</textarea>
                                    <span>广告语</span>
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    {eq name="oldData.target|default='1'" value="1"}选择会员{/eq}
                                    {eq name="oldData.target|default='1'" value="2"}选择管理员{/eq}：
                                </label>
                                <div class="layui-input-block">
                                    <div class="layui-input-inline">
                                        <input type="hidden" id="target_id" name="target_id" value="{$oldData.target_id|default='0'}" class="layui-input w210">
                                        <input type="text" id="target_name" value="{$oldData.target_name|default='全部'}" class="layui-input w210">
                                    </div>
                                    <div class="layui-input-inline">
                                        {:u('/Member/selectMember','','选择会员','load','layui-btn-normal layui-btn-sm', 800, 600)}
                                        <span>默认为全部</span>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">是否推送</label>
                                <div class="layui-input-inline">
                                    <input type="radio" name="is_push" value="0" title="否" checked="checked" />
                                    <input type="radio" name="is_push" value="1" title="是" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="hidden" name="messages_id" value="{$oldData.messages_id|default=''}">
                                    <input type="submit" class="layui-btn layui-btn-normal" value="立即保存">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>